#!/bin/bash

if test -e /tmp/ipc/shmem/home
then
    echo "共享内存文件已存在"
else
    echo "共享内存文件不存在"
    sudo mkdir /tmp/ipc/shmem -p
    sudo touch /tmp/ipc/shmem/home
    echo "共享内存文件已创建"
fi

if test -e /tmp/ipc/msgqueue/peer/msg
then
    echo "消息队列文件已存在"
else
    echo "消息队列文件不存在"
    sudo mkdir /tmp/ipc/msgqueue/peer -p
    sudo touch /tmp/ipc/msgqueue/peer/msg
    echo "消息队列文件已创建"
fi